import request from "@/utils/request";
export function listChannelGroup(params) {
  return request({
    url: "/api/czChannelGroup/groupList",
    method: "GET",
    params,
  });
}
export function delChannelGroup(ids) {
  return request({
    url: "/api/czChannelGroup/delGroup",
    method: "POST",
    data: { ids },
  });
}
export function addChannelGroup(data) {
  return request({
    url: "/api/czChannelGroup/addGroup",
    method: "POST",
    data,
  });
}
// export function changeChannelGroup(data) {
//   return request({
//     url: "/api/channelGroup/add",
//     method: "POST",
//     data,
//   });
// }
export function getChannelGroup(id) {
  return request({
    url: "/api/czChannelGroup/getGroup",
    method: "GET",
    params: { id },
  });
}
export function listAllChannelGroup(params) {
  return request({
    url: "/api/czChannelGroup/listAllGroup",
    method: "GET",
    params,
  });
}
